@import "common";
// 页面样式重置
* {
  tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -ms-tap-highlight-color: rgba(0, 0, 0, 0);
  -moz-box-sizing: border-box;
  -ms-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-text-size-adjust: none;
}

body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, fieldset, input, textarea, p, th, td {
  margin: 0;
  padding: 0;
}

html, body {
  position: relative;
  width: 100%;
  height: 100%;
}

body {
  color: $s-black;
  font-family: $s-fontFamily-cn;
  font-size: $s-font-h4;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

fieldset, img {
  border: 0;
  vertical-align: middle;
}

address, caption, cite, code, dfn, em, strong, th, var {
  font-style: normal;
  font-weight: normal;
}

ol, ul, li {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-size: 100%;
  font-weight: normal;
}

q:before, q:after {
  content: ' '
}

abbr, acronym {
  border: 0;
}

a {
  text-decoration: none;
  outline: none;
  color: $s-black;
  //去除点击出现的蓝色半透明背景
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-appearance: none;
  &:hover, &:active, &:visited {
    text-decoration: none;
    outline: none;
  }
  &:active {
    background: rgba(0, 0, 0, .1);
  }
}

input, textarea {
  font-size: $s-font-h5;
  font-family: $s-fontFamily-cn;
  &[type=file] {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-appearance: none;
  }
}

.layui-m-layerchild .layui-m-layercont {
  border-radius: 0;
  .popup-close-btn {
    position: absolute;
    right: 0;
    top: 0;
    margin: toRem(20px);
    color: $s-gray;
    font-size: $s-iconFont-sm;
    z-index: 100;
  }
}

input {
  line-height: normal !important;
}

.btn {
  width: auto;
  display: inline-block;
  //font-size:$s-font-h4;
  min-height: toRem(40px);
  line-height: 1;
  padding: toRem(6px) toRem(12px);
  text-decoration: none;
  outline: none;
  text-align: center;
  //@include border;
  border-radius: $s-border-radius;
}

.btn-large {
  width: 100%;
  padding: $s-space-lg;
  border-radius: 0;
  @include border;
}

.btn-middle {
}

.btn-small {
  width: auto;
  padding: $s-space;
  font-size: $s-font-h5;
  @include border;
}

.btn-default {
  color: $s-gray;
  background: $s-white;
  @include border($s-gray);
}

.btn-primary {
  color: $s-white;
  background: $s-primary;
  @include border($s-primary);
}

.btn-info {
  color: $s-white;
  background: $s-info;
  @include border($s-info);
}

.btn-disabled {
  color: $s-white;
  background: $s-gray;
  @include border($s-gray);
}

.btn-primary-large {
  width: 100%;
  padding: $s-space-lg;
  color: $s-white;
  background: $s-primary;
  border-radius: 0;
}

.btn-disabled-large {
  width: 100%;
  padding: $s-space-lg;
  color: $s-white;
  background: $s-gray;
  border-radius: 0;
}

.btn-primary-small {
  width: auto;
  padding: $s-space;
  font-size: $s-font-h4;
  background: $s-white;
  color: $s-primary;
  @include border($s-primary);
}

.btn-primary-solid-small {
  @extend .btn-primary-small;
  background: $s-primary;
  color: $s-white;
}

.btn-default-small {
  @extend .btn-primary-small;
  @include border;
  color: $s-gray;
}

.btn-disabled-small {
  width: auto;
  padding: $s-space;
  font-size: $s-font-h4;
  color: $s-white;
  background: $s-gray;
  @include border;
}

.top-back {
  position: absolute;
  left: 0;
  top: 0;
  width: toRem(28px);
  margin: $s-space-lg;
}

.form-item {
  padding-bottom: $s-space-lg;
  .tip {
    margin-right: $s-space;
    display: inline-block;
    width: toRem(160px);
    text-align: right;
  }
  input[type=text], input[type=password] {
    padding: $s-space;
    outline: none;
    border-radius: $s-space-sm;
    font-size: $s-font-h5;
    @include border;
    background: $s-white;
    color: $s-gray-dark;
    width: toRem(360px);
  }
  .sub-btn {
    display: inline-block;
    width: toRem(360px);
    padding: $s-space $s-space-lg*3;
    font-size: $s-font-h4;
  }
}
